#include		"network.h"

Network::Network(Async & async, PacketHandler * handler) : _tcpServer(async, handler), _udpServer(async, handler)
{

}

Network::~Network()
{

}

void			Network::start()
{
	_tcpServer.start();
	_udpServer.start();
}

ApiNetwork		*Network::getApi()
{
	ApiNetwork	*api = new ApiNetwork(this);
	return api;
}